package com.example.saiweisi.mapper.userMapper;

import com.example.saiweisi.controller.request.RechargeRequest;
import com.example.saiweisi.model.VipCardKind;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VipCardMapper {
    void buyVipCard(Integer userId, Integer vipKindId,Integer vipCardNum,double vipKindPrice);

    List<Integer> getCardNum();

    int getvipKindBalance(Integer vipKindId);

    int getVipCardByUserId(Integer userId);

    Integer getVipKindIdByUserId(Integer userId);

    double getVipKindZhekoulv(Integer vipKindId);

    Double getvipCardBalanceByUserId(Integer userId);

    void updateVipCard(Integer userId,double vipCardBalance, Integer vipKindId);

    VipCardKind getVipCard(Integer userId);

    void recharge(RechargeRequest rechargeRequest);

}
